var a = 3
function test() {
    a = 2;
    console.log(a)   
}
console.log(test())